export default {
    //自定义节流操作
    preventReClick:{
        mounted(el,binding){
            el.addEventListener('click',()=>{
                if(!el.disabled){
                    el.disabled=true
                    setTimeout(()=>{
                        el.disabled=false
                    },binding.value||2000)
                }
            })
        }
    },

    //手动修改层级
    zindexClick:{
        mounted(el,binding){
            el.addEventListener('click',()=>{
                setTimeout(()=>{
                    var a=document.getElementsByClassName('el-overlay')
                   for(var i=0;i<a.length;i++){
                    a[i].style['z-index']=10
                   }
                  },500)
            })
        }
    }
}

